/******************************************************************************
File:			msg_queue.H
Author:			William Young	
Date:			2012-04-24
Version: 		v1.0
******************************************************************************/
#ifndef _MSG_QUEUE_H
#define _MSG_QUEUE_H
#include <stdio.h>
#include "std_type.h"
#include "msg.h"
#include "phy.h"

#define MAXMSGQUE 128

bit uart_has_send_data();
bit uart_has_receive_data();
bit uart_put_send_msg(unsigned char msg_data);  
bit uart_put_send_msgs(unsigned char* ptrHead, unsigned int dataLen);
bit uart_put_receive_msg(unsigned char msg_data);
unsigned char uart_get_send_msg();				 
unsigned char uart_get_receive_msg();		


bit plc_has_send_data();
bit plc_has_receive_data();
bit plc_put_send_msg(unsigned char msg_data);  
bit plc_put_receive_msg(unsigned char msg_data);
unsigned char plc_get_send_msg();				 
unsigned char plc_get_receive_msg();	
bool send_plc_buffer_msg();




#endif
